<?php

namespace app\common\validate;

class TransactionValidate extends BaseValidate
{
    /**
     * 验证规则
     */
    protected $field = [
        'transaction_id' => '',
        'user_id'        => '对应user表',
        'action'         => '操作者',
        'type'           => '0=收入',
        'amount'         => '交易金额',
        'balance'        => '剩余余额',
        'source_no'      => '来源订单号',
        'remark'         => '备注',
        'cause'          => '原因',
        'module'         => 'points=积分',
        'to_payment'     => '支付方式',
        'card_no'        => '购物卡卡号',
        'create_time'    => '创建日期',

    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'getTransactionPage' => [],
        'getTransactionList' => [],
        'setTransactionItem' => [],
        'addTransactionItem' => [],
    ];

    /**
     * 提示消息
     */
    protected $message = [

    ];


}
